

<template>
  <div class="app-main">
    <div class="mode-body">
      <el-tabs
        v-model="mode"
        type="card"
        class="demo-tabs"
        @tab-click="handleClick"
      >
        <el-tab-pane label="弹幕模式" name="first">
          <danmu  />
        </el-tab-pane>
        <el-tab-pane label="评论模式" name="second">
          <comment/>
        </el-tab-pane>
      </el-tabs>
    </div>
  </div>
</template>

<script setup lang="ts">
import danmu from './components/danmu.vue'
import comment from './components/comment.vue'

const mode = ref('first')

function handleClick(tab) {
  console.log('tab-------->', tab)
}
</script>

<style lang="scss" scoped>
.app-main {
  min-height: 300px;
  position: relative;
  .mode-body {
  }
}
</style>
